package routers

import (
	defaults "HomeStation/controllers"
	devices "HomeStation/controllers/device"
	user "HomeStation/controllers/user"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &defaults.MainController{})
	beego.Router("/device/online", &devices.DeviceController{}, "get:DeviceOnline")
	beego.Router("/device/add", &devices.DeviceController{}, "post:AddDevice")
	beego.Router("/device/update", &devices.DeviceController{}, "post:UpdateDevice")
	beego.Router("/devices", &devices.DeviceController{}, "get:GetAllDevices")
	beego.Router("/login", &user.UserControlles{}, "post:Login")
	beego.Router("/register", &user.UserControlles{}, "post:Register")
}
